package com.yfs.cloud.feign;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;

import com.yfs.cloud.vo.UserVO;

/**
* @Company: 影法師工作室
* @Description: UserFeign 服务降级
* @author 影法師  
* @date 2020年8月26日 下午4:27:02 
* @version V1.0
 */
@Component
public class UserFeignFallback implements UserFeign {

	private Logger logger = LoggerFactory.getLogger(this.getClass());

	@Override
	public String findOne(@RequestBody UserVO userVO) {
		logger.info("com.yfs.cloud.feign.UserFeign.findOne(UserVO) 服务已降级");
		return null;
	}

	@Override
	public String findOneById(Long id) throws Exception {
		logger.info("com.yfs.cloud.feign.UserFeign.findOneById(Long) 服务已降级");
		return null;
	}

}
